package io.renren.modules.avanotes.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.common.vo.input.SpecialSubjectAchivementEvaluationIUVo;
import io.renren.modules.avanotes.entity.SpecialSubjectAchivementEvaluationEntity;

import java.util.Map;

/**
 * 专题学习成果评价表
 *
 * @author zzr
 * @email 529742454@qq.com
 * @date 2022-02-25 10:45:17
 */
public interface SpecialSubjectAchivmentEvaluationService extends IService<SpecialSubjectAchivementEvaluationEntity> {

    PageUtils queryPage(Map<String, Object> params);


    Integer insert(SpecialSubjectAchivementEvaluationIUVo vo);

    /**
     * 用于判断用户当天是否已经评价过 专题
     *
     * @return
     */
    Integer getCountByDateAndUserIdAndSpecialId(Integer date, Integer specialId, Long userId);
}

